home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Code / Chapter08 / rgb_cube.S3D < prev    next >
Text File  |  2000-06-28  |  1KB  |  61 lines

  1. Background {
  2.     color 0 0 0
  3. }
  4. DEF Box01 Transform {
  5.     translation 0 0 0
  6.     children [
  7.         Transform {
  8.             translation 0 -1 0
  9.             children [
  10.                 Shape {
  11.                     appearance [
  12.                         MultiAppearance {
  13.                             material Material {
  14.                                 diffuseColor 0 1 0
  15.                                 specularColor 0.045 0.045 0.045
  16.                                 shininess 0.25
  17.                                 transparency 0
  18.                             }
  19.                         }
  20.                         MultiAppearance {
  21.                             material Material {
  22.                                 diffuseColor 0 0 1
  23.                                 specularColor 0.045 0.045 0.045
  24.                                 shininess 0.25
  25.                                 transparency 0
  26.                             }
  27.                         }
  28.                         MultiAppearance {
  29.                             material Material {
  30.                                 diffuseColor 0.9804 0.04706 0.04706
  31.                                 specularColor 0.045 0.045 0.045
  32.                                 shininess 0.25
  33.                                 transparency 0
  34.                             }
  35.                         }
  36.                     ]
  37.                     geometry MultiMesh {
  38.                         coord DEF Box01-COORD Coordinate {
  39.                             point [
  40.                                 -1 0 1 1 0 1 -1 0 -1 1 0 -1 -1 2 1 1 2 1 -1 2 -1 1 2 -1
  41.                             ]
  42.                         }
  43.                         coordIndex [
  44.                             0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  45.                             2 0 4 -1 4 6 2 -1
  46.                         ]
  47.                         smoothingIndex [
  48.                             1 -1 1 -1 1 -1 1 -1 2 -1 2 -1 3 -1 3 -1 2 -1 2 -1 3 -1 3 -1
  49.                         ]
  50.                         appearanceIndex [
  51.                             0 0 0 0 1 1 2 2 1 1 2 2
  52.                         ]
  53.                         textureMappings [
  54.                         ]
  55.                     }
  56.                 }
  57.             ]
  58.         }
  59.     ]
  60. }
  61.